info = {
    '苹果':32.8,
    '香蕉': 22,
    '葡萄': 15.5
}
Friuts = {
	'苹果':12.3,  # 水果和单价
	'草莓':4.5,
    '香蕉':6.3,
    '葡萄':5.8,
    '橘子':6.4,
    '樱桃':15.8
 }
dict = {
    '小明': {
        'fruits': {'苹果':4, '草莓':13, '香蕉':10},
        'money': 0
    },
    '小刚': {
        'fruits': {'葡萄':19, '橘子':12, '樱桃':30},
        'money': 0
    }
}
li = []
li1 = []
for i in dict["小明"]["fruits"].values():
    if i == 4:
        li.append(Friuts['苹果']*i)
    elif i == 13:
        li.append(Friuts['草莓']*i)
    elif i == 10:
        li.append(Friuts['香蕉']*i)

for k in dict["小刚"]["fruits"].values():
    if k == 19:
        li1.append(Friuts['葡萄']*k)
    elif k == 12:
        li1.append(Friuts['橘子']*k)
    elif k == 30:
        li1.append(Friuts['樱桃']*k)

dict['小明']['money'] = sum(li)
dict['小刚']['money'] = sum(li1)

print(dict)